{layout base.latte}
{block #title}
    Správa kreditů 
    | {include #parent}
{/block}

{block #breadcrumbs}
	{include #parent}
	/ <a href="{plink Admin:credit}">Správa kreditů</a>
	/ {$user['name']} {$user['surname']} ({$user['kid']})
{/block}
{block #subMenu}{/block}

{block #adminContent}
<h2>Detail kreditů uživatele {$user['name']} {$user['surname']} ({$user['kid']})</h2>
{control adminUserCreditsGrid}
{*
<table>
	<thead><tr><td>Za co</td><td>Kolik</td><td>Poznámka</td><td>Sezóna</td><td>Zadáno</td></tr></thead>
	{foreach $data['data'] as $d}
	<tr>
		<td>{$d['label']}</td>
		<td>{$d['credit_count']}</td>
		<td>{$d['comment']}</td>
		<td>{$d['season']}</td>
		<td>{date("m.d.y", $d['ordered_time']->getTimeStamp())}</td><td><a href="{plink Admin:editCredit $d['id_credit']}">Upravit</a></td>
	</tr>
	{/foreach}
	<tr><td>Celkem</td><td>{$data['total']}</td><td></td><td>Zbývá</td><td></td></tr>
	</table>
*}
{/block}